package net.sx.minemodule.mvp.activities;

import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.homegoods.aroutercomment.ARouterPath;
import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.base.KRefreshListActivity;
import com.kedll.library.base.MyBaseFragmentActivity;
import com.kedll.library.mvp.BasePresenter;
import com.kedll.library.util.MyUtils;

import net.sx.minemodule.R;
import net.sx.minemodule.databinding.MineActivityMyfansBinding;
import net.sx.minemodule.mvp.bean.InviteBean;
import net.sx.minemodule.mvp.bean.MyFansBean;
import net.sx.minemodule.mvp.presenters.MineMyFansPresenter;

/**
 * 我的粉丝
 */
@Route(path = ARouterPath.PATH_MINE_MYFANS_LIST)
public class MineMyFansActivity extends KRefreshListActivity<MineActivityMyfansBinding, MineMyFansPresenter> {


    @Override
    protected void initEvent() {
        adapter.setOnItemClickListener((MultiTypeAdapter.OnItemClickListener<MyFansBean>) (v, iItem) -> {
            //TODO
        });

    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        super.initData(savedInstanceState);
        appBarLayout.setBackgroundResource(R.color.color_f6f6f6);
        refreshLayout.setBackgroundResource(R.color.white);
        list.setPadding(MyUtils.dp2px(16), MyUtils.dp2px(16), MyUtils.dp2px(16), 9);
        list.setClipToPadding(false);
        refreshLayout.setClipToPadding(false);
    }

    @Override
    protected int getLayout() {
        return R.layout.mine_activity_myfans;
    }

    @Override
    protected MineMyFansPresenter getPresenter() {
        return new MineMyFansPresenter(this);
    }


    @Override
    protected void initToolBar(Bundle savedInstanceState) {
        super.initToolBar(savedInstanceState);
        ARouter.getInstance().inject(this);
        setTitle("我的粉丝");
    }
}
